/*
 * ST7735S.h
 *
 *  Created on: Apr 12, 2025
 *      Author: zhang
 */
#ifndef ST7735S_H_
#define ST7735S_H_

#include "main.h"

#define USE_HORIZONTAL 3  //设置横屏或者竖屏显示 0或1为竖屏 2或3为横屏


#if USE_HORIZONTAL==0||USE_HORIZONTAL==1
#define LCD_W 128
#define LCD_H 128

#else
#define LCD_W 128
#define LCD_H 128
#endif

void LCD_WR_DATA8(uint8_t Data);
void LCD_WR_DATA(uint16_t Data);
void LCD_Address_Set(uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2);
void LCD_Init(void);

#endif /* PSB_ST7735S_H_ */
